home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20020314-20021006 / 000333_fdc@columbia.edu_Mon Sep 2 13:29:27 EDT 2002.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  60 lines

  1. Article: 13663 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: remote dir and /dotfiles?
  6. Date: 2 Sep 2002 13:29:18 -0400
  7. Organization: Columbia University
  8. Lines: 43
  9. Message-ID: <al075e$8lf$1@watsol.cc.columbia.edu>
  10. References: <uptvx9x9k.fsf@att.net>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1030987759 17228 128.59.39.139 (2 Sep 2002 17:29:19 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 2 Sep 2002 17:29:19 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13663
  16.  
  17. In article <uptvx9x9k.fsf@att.net>,
  18. Thomas A. Horsley <tom.horsley@att.net> wrote:
  19. : Is there any way to get "remote directory" to list all the files all the
  20. : time?
  21. : I've tried all the combinations of "set options directory /dotfiles" on both
  22. : the local and server side kermits and the /dotfiles switch on the remote
  23. : directory command (doesn't seem to act like it is a switch when used with
  24. : rdir), and nothing seems to work.
  25. : Am I stuck with always running two command to get the whole list?
  26. : ("rdir" and "rdir .*").
  27. : (This is with kermit 95 2.0 on the local side and C-Kermit 8.0.201
  28. : on the remote side, by the way).
  29. It's a bug, thanks for noticing.  It can be fixed by a one-character patch
  30. to ckufio.c:
  31.  
  32. *** 6292,6298 ****
  33.               /* This speeds things up a bit. */
  34.               /* If it causes trouble define NOSKIPMATCH and rebuild. */
  35.               if (depth == 0 && (s1[0] == '*') && !s1[1])
  36. !               mresult = matchdot ? 1 : (s2[0] != '.');
  37.               else
  38.   #endif /* NOSKIPMATCH */
  39.                 mresult = ckmatch(s1,s2,1,opts); /* Match */
  40. --- 6292,6298 ----
  41.               /* This speeds things up a bit. */
  42.               /* If it causes trouble define NOSKIPMATCH and rebuild. */
  43.               if (depth == 0 && (s1[0] == '*') && !s1[1])
  44. !               mresult = xmatchdot ? 1 : (s2[0] != '.');
  45.               else
  46.   #endif /* NOSKIPMATCH */
  47.                 mresult = ckmatch(s1,s2,1,opts); /* Match */
  48.  
  49. That is, change the "matchdot" reference to "xmatchdot".
  50.  
  51. An updated working copy of C-Kermit with this fix is in:
  52.  
  53.   http://www.columbia.edu/kermit/ckdaily.html
  54.  
  55. - Frank
  56.